package com.example.cms.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.cms.dao.OrderDao;
import com.example.cms.entity.Order;
import com.example.cms.service.OrderService;

@Service("OrderService")
@Transactional
public class OrderServiceImpl implements OrderService{

	@Autowired
	private OrderDao orderDao;
	
	@Override
	public List<Order> getAllorderS() {
		// TODO Auto-generated method stub
		return orderDao.getAllOrders();
	}

	@Override
	public Integer insertOrder(Order order) {
		return orderDao.insertOrder(order);
	}

	@Override
	public Integer deleteOrder() {
		return null;
	}

	@Override
	public Integer updateOrder() {
		return null;
	}

	@Override
	public Integer insertOrder() {
		return null;
	}

}
